﻿using DevExpress.XtraBars.Docking2010.Views;

namespace XCI.Windows
{
    /// <summary>
    /// 部件接口
    /// </summary>
    public interface IWidget
    {
        /// <summary>
        /// 创建文档对象
        /// </summary>
        BaseDocument CreateDocument();

        /// <summary>
        /// 初始化控件
        /// </summary>
        /// <param name="document">文档对象</param>
        void Init(BaseDocument document);
    }
}
